package cn.gdut.chengcai.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gdut.chengcai.dao.PersonalInfoDao;
import cn.gdut.chengcai.entity.PersonalInfo;
import cn.gdut.chengcai.entity.PersonalInfoExample;
import cn.gdut.chengcai.service.PersonalInfoService;

@Service
@Transactional
public class PersonalInfoServiceImpl implements PersonalInfoService {

	@Autowired
	private PersonalInfoDao dao;

	@Override
	public long countByExample(PersonalInfoExample example) {
		return this.dao.countByExample(example);
	}

	@Override
	public int deleteByExample(PersonalInfoExample example) {
		return this.dao.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {
		return this.dao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(PersonalInfo record) {
		return this.dao.insert(record);
	}

	@Override
	public int insertSelective(PersonalInfo record) {
		return this.dao.insertSelective(record);
	}

	@Override
	public List<PersonalInfo> selectByExample(PersonalInfoExample example) {
		return this.dao.selectByExample(example);
	}

	@Override
	public PersonalInfo selectByPrimaryKey(Long id) {
		return this.dao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(PersonalInfo record, PersonalInfoExample example) {
		return this.dao.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(PersonalInfo record, PersonalInfoExample example) {
		return this.dao.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(PersonalInfo record) {
		return this.dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(PersonalInfo record) {
		return this.dao.updateByPrimaryKey(record);
	}

	@Override
	public PersonalInfo isExist(String email) {
		// TODO Auto-generated method stub
		return null;
	}

}
